package com.six.sso.feign;

import com.six.core.entity.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: WangPeng
 * @createTime: 2023/02/27 10:25
 * @description:
 * @version: v1.0
 */
@FeignClient(value = "caicaibang-permission")
public interface EmpFeign {

    @PostMapping("/system/emp/findByName")
    Emp getByName(@RequestParam String username);
}

